package com.macro.mall.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Information {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("人数")
    private Integer peopleNumber;
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date openingTime;
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeingTime;

    @ApiModelProperty("招聘志愿活动id")
    private Long recruitmentInformationId;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("用户手机号码")
    private String userPhone;
    @ApiModelProperty("用户类型")
    private Long userType;
    @ApiModelProperty("用户身份证号")
    private String userIdCard;
    @ApiModelProperty("报名时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationTime;
    @ApiModelProperty("状态")
    private Integer status;

    @Override
    public String toString() {
        return "Information{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", peopleNumber=" + peopleNumber +
                ", openingTime=" + openingTime +
                ", closeingTime=" + closeingTime +
                ", recruitmentInformationId=" + recruitmentInformationId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userType=" + userType +
                ", userIdCard='" + userIdCard + '\'' +
                ", applicationTime=" + applicationTime +
                ", status=" + status +
                '}';
    }
}
